<div class="layui-body">
<div class="aright">

<div class="layui-tab"  style="margin: 20px 30px 20px 20px;">
   
  <div class="layui-tab-content">
     
    <div class="layui-tab-item layui-show" >
	<form class="layui-form bform" method="post" action="{:url('man/ad/edit_txt')}" enctype="multipart/form-data">
<input type="hidden" name="id" value="{$con.id}">
<div class="layui-form-item">
    <label class="layui-form-label">广告标题：</label>
    <div class="layui-input-block">
      <input type="text" name="name" value="{$con.name}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">广告链接：</label>
    <div class="layui-input-block">
      <input type="text" name="href" value="{$con.href}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
<div class="layui-form-item">
    <label class="layui-form-label">是否显示：</label>
    <div class="layui-input-block">
       <input type="radio" name="display" value="2" title="开启" {if condition="$con.display eq 2"}checked{/if}>
      <input type="radio" name="display" value="1" title="关闭" {if condition="$con.display eq 1"}checked{/if}>
    </div>
  </div>

  <div class="layui-form-item">
    <div class="layui-input-block">
	  <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
    </div>
  </div>

</form>
<script>
  layui.use('form',function(){
     var form = layui.form();
  })
  </script>
	</div>
 </div>
</div>

